<template>
  <div>
    <div
      class="
        bg-white
        d-flex
        justify-content-center
        flex-column
        align-items-center
        mt-4
        rounded
      "
    >
      <div class="position-relative p-box mt-4">
        <router-link
          :to="{ path: '/user', query: { id: item.aid } }"
          class="img-box"
        >
          <img class="border-50 rounded-circle" :src="item.pic2" alt="" />
        </router-link>
        <img
          class="position-absolute icon"
          src="http://www.gracg.com/_templates/css/icon_rz/red_v.png?1"
          alt=""
        />
      </div>
      <a href="#" class="text-decoration-none text-dark name">{{
        item.name
      }}</a>
      <div class="position">自由职业插画师</div>
      <div class="pt-2 popular">
        人气<span>{{ item.pop }}万</span> 作品<span>121</span>
      </div>
      <div class="pt-3 mb-3">
        <button class="border bg-white rounded-pill">关注</button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    item: {
      type: Object,
    },
  },
};
</script>

<style lang="less" scoped>
.font {
  font-size: 12px;
  color: #999;
}
.p-box {
  width: 80px;

  .img-box {
    img {
      width: 80px;
      height: 80px;
    }
  }
  .icon {
    width: 20px;
    right: 0;
    bottom: 0;
    border-radius: 100%;
  }
}
.name {
  font-size: 18px;
  font-weight: bold;
}
.position {
  .font();
}
.popular {
  .font();
  span {
    color: #000;
  }
}
</style>